package com.ctshk.rpc.order.custom.req.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 使用折扣req
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-02-26
 */
@Data
@ApiModel(value="使用折扣req", description="使用折扣req")
public class CustomOrderDiscountAddReq implements Serializable {

    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty(value = "所属订单",required = true)
    private Long orderId;

    @NotNull(message = "游客ID不能为空")
    @ApiModelProperty(value = "游客ID",required = true)
    private Long touristId;

    @NotNull(message = "折扣前应收金额不能为空")
    @ApiModelProperty(value = "折扣前应收金额",required = true)
    private BigDecimal beforeAmount;

    @NotNull(message = "折扣金额不能为空")
    @ApiModelProperty(value = "折扣金额",required = true)
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "折扣类型ID不能为空")
    @ApiModelProperty(value = "折扣类型ID",required = true)
    private Long discountTypeId;

    @NotNull(message = "折扣类型不能为空")
    @ApiModelProperty(value = "折扣类型",required = true)
    private String discountType;

    @ApiModelProperty(value = "用户Id")
    private Long userId;
}
